<%@ page import="sy.pageModel.Room" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $("input[name='name']").focus();
    })
</script>
<div align="center">
    <form id="admin_currencyEdit_editForm" method="post">
        <table class="tableForm">
            <tr>
                <th>内容编号</th>
                <td>
                    <input class="easyui-validatebox" readonly placeholder="自动生成"/></td>
                <th>房间名称</th>
                <td><input name="name" class="easyui-validatebox" data-options="required:true" /></td>
            </tr>
            <tr>
                <th>房间图片</th>
                <td>
                    <input type="hidden" value="add" id="js-val">
                    <jsp:include page="file.jsp"></jsp:include>
                </td>
                <th>所属单位</th>
                <td>
                    <input type="text" class="easyui-combotree" name="deptId" data-options="url:'${pageContext.request.contextPath}/infoController/find_info.action?ids=02,03,04,05'" id="dept_type_1" style="width: 230px;">
                    <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_1').combotree('clear');" />
                </td>
            </tr>
            <tr>
                <th>房间单位</th>
                <td><input name="units" class="easyui-validatebox" data-options="required:true"/></td>
                <th>支付方式</th>
                <td>
                    <select name="payType" class="easyui-validatebox" data-options="required:true">
                        <%for(String key : Room.ROOM_PAY_TYPE.keySet()) {%>
                        <option value="<%=key%>"><%=Room.ROOM_PAY_TYPE.get(key)%></option>
                        <%}%>
                    </select>
                </td>
            </tr>
            <tr>
                <th>非会员价</th>
                <td><input name="price" class="easyui-validatebox"  data-options="required:true" value="0.00" /></td>
                <th>基本卡(价格)</th>
                <td><input name="jdPrice" class="easyui-validatebox" data-options="required:true" value="0.00" /></td>
            </tr>
            <tr>
                <th>维护卡(价格)</th>
                <td><input name="whPrice" class="easyui-validatebox"  data-options="required:true"  value="0.00"  /></td>
                <th>促进卡(价格)</th>
                <td><input name="cjPrice" class="easyui-validatebox" data-options="required:true" value="0.00" /></td>
            </tr>
            <tr>
                <th>房间说明</th>
                <td><input name="comment" class="easyui-validatebox" /></td>
                <th>入住人数</th>
                <td><input name="personNumber" class="easyui-numberbox" /></td>
            </tr>
        </table>
    </form>
</div>